

from ultralytics import YOLO
model = YOLO("../ToOnnx/yolov5n.pt")
success = model.export(format="onnx", simplify=True)  # export the model to onnx format
assert success
print("转换成功")


